package com.szbber.medical.board.viewModel

import android.content.Context
import androidx.lifecycle.MutableLiveData
import com.szbber.commen.api.Repository
import com.szbber.commen.api.launch
import com.szbber.commen.base.BaseViewModel
import com.szbber.commen.bean.DoctorOrderBean

class OrderInfoViewModel:BaseViewModel() {


    val doctorOrderBean = MutableLiveData<DoctorOrderBean>()
    fun doctorOrderList(context: Context?, cureNo:String?, page:String) = launch(context,{
        val queue = arrayOf("patientId", cureNo, "page",page)
        doctorOrderBean.value = Repository.doctorOrderList(context,*queue)
    })

    fun doctorOrderListNoDialog(context: Context?, cureNo:String?, page:String) = launch{
        val queue = arrayOf("patientId", cureNo, "page",page)
        doctorOrderBean.value = Repository.doctorOrderList(context, *queue)
    }


}